package fr.utbm.to52.android_bibtex.model.spec;

import java.util.EventObject;

public class EntryDefinitionsEvent extends EventObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6627129142968373736L;

	private final EntryDefinitionEvent entryDefinitionChangeEvent;

	public EntryDefinitionsEvent(EntryDefinition source) {
		super(source);
		this.entryDefinitionChangeEvent = null;
	}

	public EntryDefinitionsEvent(EntryDefinitionEvent entryDefinitionChangeEvent) {
		super(entryDefinitionChangeEvent.getSource());
		this.entryDefinitionChangeEvent = entryDefinitionChangeEvent;
	}

	@Override
	public EntryDefinition getSource() {
		return (EntryDefinition) super.getSource();
	}

	public EntryDefinitionEvent getEntryDefinitionChangeEvent() {
		return this.entryDefinitionChangeEvent;
	}

}
